#!/bin/bash
wget -c http://test.wgmf.com/mirrors/rsync/rsync-3.2.3.tar.gz
yum install -y make gcc openssl-devel libzstd-devel lz4-devel
tar zxvf rsync-3.2.3.tar.gz
cd rsync-3.2.3
./configure --prefix=/usr/local/rsync --disable-xxhash --disable-ipv6
make && make install
cd ..
mv /usr/bin/rsync /usr/bin/rsync.old
ln -s /usr/local/rsync/bin/rsync /usr/bin/rsync
rsync --version|head -1

